package com.dingreading.cloud.admin.dto;

import com.alibaba.excel.annotation.ExcelProperty;
import com.alibaba.excel.annotation.write.style.*;
import com.alibaba.excel.enums.poi.HorizontalAlignmentEnum;
import com.alibaba.excel.enums.poi.VerticalAlignmentEnum;
import lombok.Data;

/**
 * 商品的采购价和售出价
 */
@Data
@HeadRowHeight(25)
@ContentRowHeight(25)
@ColumnWidth(17)
// 内容字体设置成20
@ContentFontStyle(fontHeightInPoints = 13)
@ContentStyle(horizontalAlignment = HorizontalAlignmentEnum.CENTER, verticalAlignment = VerticalAlignmentEnum.CENTER)
public class PurchaseAndSalePriceVO {

    @ExcelProperty(value = "商品名称")
    private String goodsName;

    @ExcelProperty(value = "商品规格名称")
    private String goodsTypeName;

    @ExcelProperty(value = "采购数量")
    private int purchaseNum;

    @ExcelProperty(value = "采购总价")
    private Double purchaseAmount;

    @ExcelProperty(value = "购买数量")
    private int buyNum = 0;

    @ExcelProperty(value = "购买总价")
    private Double cartAmount;

    @ColumnWidth(23)
    @ExcelProperty(value = "自营店-购买数量")
    private int selfBuyNum = 0;

    @ColumnWidth(23)
    @ExcelProperty(value = "自营店-购买总价")
    private Double selfCartAmount;

    @ColumnWidth(23)
    @ExcelProperty(value = "加盟店-购买数量")
    private int joinBuyNum = 0;

    @ColumnWidth(23)
    @ExcelProperty(value = "加盟店-购买总价")
    private Double joinCartAmount;

}
